﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="OSDK.WebForm1" %>
  
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>   
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<script runat="server">  
  
    protected void ServerButton_Click(object sender, EventArgs e)  
    {  
        ClientScript.RegisterStartupScript(this.GetType(), "key", "launchModal();", true);  
    }  
</script>  
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title>AJAX Control Toolkit</title>  
    <link rel="stylesheet" type="text/css" href="~/CSS/StyleSheet.css" />
</head>  
<body>  
    <form id="form1" runat="server">  
    
    <ajaxtoolkit:toolkitscriptmanager ID="asm" runat="server"></ajaxtoolkit:toolkitscriptmanager>
  
    <asp:Button ID="ClientButton" runat="server" Text="Launch Modal Popup (Client)" OnClientClick="return false" />  
          
  
  
    <asp:Panel ID="ModalPanel" runat="server" Width="500px" style="display:none" CssClass="modalPopup">  
        ASP.NET AJAX is a free framework for quickly creating a new generation of more efficient,  
        more interactive and highly-personalized Web experiences that work across all the  
        most popular browsers.<br />  
        <asp:Button ID="OKButton" runat="server" Text="Close" />  
    </asp:Panel>  
    <ajaxtoolkit:modalpopupextender id="mpe" runat="server" targetcontrolid="ClientButton" BackgroundCssClass="modalBackground" 
        popupcontrolid="ModalPanel" okcontrolid="OKButton" />  
  
    </form>  
</body>  
</html>  
